package com.ruoyi.service;

import java.util.List;
import com.ruoyi.domain.ZhwyRentalcontract;

/**
 * 租售合同Service接口
 * 
 * @author ruoyi
 * @date 2024-05-07
 */
public interface IZhwyRentalcontractService 
{
    /**
     * 查询租售合同
     * 
     * @param id 租售合同主键
     * @return 租售合同
     */
    public ZhwyRentalcontract selectZhwyRentalcontractById(Long id);

    /**
     * 查询租售合同列表
     * 
     * @param zhwyRentalcontract 租售合同
     * @return 租售合同集合
     */
    public List<ZhwyRentalcontract> selectZhwyRentalcontractList(ZhwyRentalcontract zhwyRentalcontract);

    /**
     * 新增租售合同
     * 
     * @param zhwyRentalcontract 租售合同
     * @return 结果
     */
    public int insertZhwyRentalcontract(ZhwyRentalcontract zhwyRentalcontract);

    /**
     * 修改租售合同
     * 
     * @param zhwyRentalcontract 租售合同
     * @return 结果
     */
    public int updateZhwyRentalcontract(ZhwyRentalcontract zhwyRentalcontract);

    /**
     * 批量删除租售合同
     * 
     * @param ids 需要删除的租售合同主键集合
     * @return 结果
     */
    public int deleteZhwyRentalcontractByIds(Long[] ids);

    /**
     * 删除租售合同信息
     * 
     * @param id 租售合同主键
     * @return 结果
     */
    public int deleteZhwyRentalcontractById(Long id);
    // 合同撤销
    public int rollbackById(Long id);
    Long findByReMarkAndTrade(String trade,String remark);
}
